package com.example.common.exception;

import lombok.Getter;

/**
 * @author cc
 * @classname NoResultException
 * @description TODO
 * @date 2022/8/11 16:09
 */
@Getter
public class NoResultException extends RuntimeException {
    private final int code;
    private final String msg;

    public NoResultException() {
        this(200, "");
    }

    public NoResultException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
